package day02_oop_code.com.itheima.d13_interface;

public class Test {
    public static void main(String[] args) {

    }
}
interface A1{
    String run();
}
interface B1{
    void run();
}
//interface C1 extends A1, B1{
//}

interface A2{
    String run();
}
interface B2{
    void run();
}
//class C1 implements A2, B2{
//
//}

class Animal{
    public void run(){
        System.out.println("Animal.run");
    }
}
interface Go{
    default void run(){
        System.out.println("Go.run");
    }
}
class Cat extends Animal implements Go{
 public void test(){
     run();
     Go.super.run();
 }
}
interface A3{
    default void run(){
        System.out.println("A3.run");
    }
}
interface B3{
    default void run(){
        System.out.println("B3.run");
    }
}
class C3 implements A3, B3{
    @Override
    public void run() {
        System.out.println("C3.run");
        A3.super.run();
        B3.super.run();
    }
}
